<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
/**
 * BigDaddy Site Initialization for CRONS
 * Created: Duleepa Wijayawardhana, October 19, 2006
 * Copyright 2004 BioWare Corp.
 */

error_reporting(E_ALL ^ E_NOTICE);


//Directory where all the library files are kept.
define ("LIBDIR", "/bigdaddy/phplib");

//Constants File
require(LIBDIR."/init/constants.inc");

//--------------------------------------------------------------------------------------//
//Set The Database Array and get the database functions
require_once(DB_FUNCTIONS);

//--------------------------------------------------------------------------------------//
//Initialize the session class
require_once(CLASS_FORMINPUT);
$FormInput = new FormInput();

//--------------------------------------------------------------------------------------//
//Initialize the session class
require_once(CLASS_AUDIT);
$Audit = new Audit();

//--------------------------------------------------------------------------------------//
//Initialize the sessions
require_once(SESSION_INIT);

//--------------------------------------------------------------------------------------//
//Initialize the session class
//require_once(CLASS_LOGIN);

//--------------------------------------------------------------------------------------//
//Get the role class
require_once(CLASS_ROLE);

//--------------------------------------------------------------------------------------//
//Include the core functions file
require_once(CORE_FUNCTIONS);

$Role = new Role();
require_once(CLASS_BIGDADDY);
require_once(CLASS_BIGDADDY_CONTROL);
require_once(CLASS_BIGDADDY_DISPLAY);
require_once(CLASS_BIGDADDY_HISTORY);
require_once(CLASS_BIGDADDY_DATA);


$BigDaddy = new BigDaddy;
$BigDaddyControl = new BigDaddyControl;
$BigDaddyData = new BigDaddyData;
$BigDaddyHistory = new BigDaddyHistory;
$BigDaddyDisplay = new BigDaddyDisplay;

